package com.zzh.jetpackdemo.camera_x

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import com.zzh.jetpackdemo.R

class CameraXActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_camera_x)

        var test = with(this@CameraXActivity, {
            window.decorView
        })

        test


        View(this).apply {
            var f = 0
            Log.i("zhangzhihao", ">>>>>>$f")
            visibility = View.VISIBLE

        }
    }
}